﻿#region 文件说明
/*
 * *******************************************************************
 * 
 * 版权：God科技有限公司
 * 
 * *******************************************************************
 * 
 * 创建人：史赫森
 * 创建时间：2022/2/28
 * 
 * *******************************************************************
 * 
 * 功能描述：货主合同管理DTO
 * 
 * *******************************************************************
 * 修改履历：
 * 史赫森20220228 + 货主合同管理DTO添加
 * 
 * *******************************************************************
 */
#endregion
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace OpenAuth.App.Contract.Request
{ /// <summary>
  /// 货主合同管理
  /// </summary>
    public class CargoOwnerAddDto
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        [Required(ErrorMessage = "合同编号不能为空")]
        [StringLength(40, ErrorMessage = "长度不能超过40")]

        public string ContractNo { get; set; }
        /// <summary>
        /// 合同标题
        /// </summary>
        [Required(ErrorMessage = "合同标题不能为空")]
        [StringLength(40, ErrorMessage = "长度不能超过40")]
        public string ContractTitle { get; set; }
        /// <summary>
        /// 货主单位
        /// </summary>
        [Required(ErrorMessage = "货主单位不能为空")]
        [StringLength(40, ErrorMessage = "长度不能超过40")]
        public string Ownerunit { get; set; }
        /// <summary>
        /// 货主负责人
        /// </summary>
        [Required(ErrorMessage = "货主负责人不能为空")]
        [StringLength(40, ErrorMessage = "长度不能超过40")]
        public string OwnerPerson { get; set; }
        /// <summary>
        /// 线路
        /// </summary>
        [Required(ErrorMessage = "线路不能为空")]
        public int Line { get; set; }
        /// <summary>
        /// 吨运价
        /// </summary>
        [Required(ErrorMessage = "吨运价不能为空")]
        [StringLength(24, ErrorMessage = "长度不能超过24")]
        public decimal Tonfreightrate { get; set; }
        /// <summary>
        /// 包车条件吨位
        /// </summary>
        [Required(ErrorMessage = "包车条件吨位不能为空")]
        public int CharterConditiontonnage { get; set; }
        /// <summary>
        /// 包车金额
        /// </summary>
        [Required(ErrorMessage = "包车金额不能为空")]
        [StringLength(24, ErrorMessage = "长度不能超过24")]
        public decimal CharterAmount { get; set; }
        /// <summary>
        /// 签订日期
        /// </summary>
        [Required(ErrorMessage = "签订日期不能为空")]
        public DateTime SigningDate { get; set; }
        /// <summary>
        /// 合同金额
        /// </summary>
        [Required(ErrorMessage = "合同金额不能为空")]
        [StringLength(24, ErrorMessage = "长度不能超过24")]
        public decimal ContractAmount { get; set; }
        /// <summary>
        /// 项目说明
        /// </summary>
        [Required(ErrorMessage = "项目说明不能为空")]
        [StringLength(40, ErrorMessage = "长度不能超过40")]
        public string ProjectDescription { get; set; }
        /// <summary>
        /// 变更条款
        /// </summary>
        [Required(ErrorMessage = "变更条款不能为空")]
        [StringLength(40, ErrorMessage = "长度不能超过40")]
        public string ChangeClause { get; set; }
        /// <summary>
        /// 合同文本
        /// </summary>
        [Required(ErrorMessage = "合同文本不能为空")]
        [StringLength(40, ErrorMessage = "长度不能超过40")]
        public string ContractText { get; set; }
        /// <summary>
        /// 经办人
        /// </summary>
        [Required(ErrorMessage = "经办人不能为空")]
        [StringLength(40, ErrorMessage = "长度不能超过40")]
        public string Handler { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Required(ErrorMessage = "状态不能为空")]
        public int Status { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>
        [Required(ErrorMessage = "审批人不能为空")]
        public int Approver { get; set; }
    }
}
